package com.exception;

public class InsufficientFundsExceptionextends extends Exception{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Bank  excepbank;      // 银行对象
	private double excepAmount;   // 要取的钱
	InsufficientFundsExceptionextends(Bank ba, double  dAmount){
		excepbank = ba;
	    excepAmount=dAmount;
	}
    public String excepMessage(){
    	String  str="The balance is "+excepbank.balance
    				+ "\n"+"The withdrawal was "+excepAmount;
   	  	return str; 	
   }

}
